package psd.model.Prolog.Converters;

import org.eclipse.jdt.core.dom.ExpressionStatement;

import psd.model.IConverter;
import psd.model.Prolog.FactGenerationToolbox;
import psd.model.Prolog.PrologConverter;


public class PrologExpressionStatementConverter extends PrologConverter
		implements IConverter<ExpressionStatement> {

	public PrologExpressionStatementConverter(FactGenerationToolbox toolbox) {
		super(toolbox);
	}

	@Override
	public boolean convert(ExpressionStatement node) {
		String args[] = { idResolver.getID(node.getExpression()) };
		createBodyFact(node, "execT", args);
		return true;
	}

}
